package com.xiangwei.dao;

import java.util.List;
import java.util.Map;

import com.xiangwei.entity.Admin;

public interface AdminMapper {
    int deleteByPrimaryKey(Short id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Short id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
    
    Admin findAdmin(Admin admin);
    /*
     * 查询所有账户信息
     */
    List<Admin> findAdminAll();
    /*
     * 查询多有普通账户信息
     */
    List<Admin> findAdminList();
    /**
     * 判断是否有重复的用户名称
     * @param map
     * @return
     */
    int findUserNameCount(String username);
}